﻿@model Bricks.Site.Models.Account.ChangePasswordView

@{
    ViewBag.Title = "修改密码";
    //Layout = "~/Views/Shared/_UserPage.cshtml";
}

<script src="@Url.Content("~/Res/easyui/expands/common.js")"></script>

<div class="frombox datagrid-body" style="padding-bottom: 5px;">
    <form id="form-changePassword" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">用户名</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="UserName" disabled="disabled" value="@Model.UserName" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">原密码</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input type="password" id="OldPassword" name="OldPassword" class="easyui-validatebox" data-options="required:true" value="@Model.OldPassword" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">新密码</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input type="password" id="NewPassword" name="NewPassword" class="easyui-validatebox" data-options="required:true,validType:'noEquals[\'#OldPassword\']'" invalidMessage="新旧密码一致，无需修改" value="@Model.NewPassword" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">确认密码</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input type="password" id="ConfirmPassword" name="ConfirmPassword" class="easyui-validatebox" data-options="required:true,validType:'equals[\'#NewPassword\']'" invalidMessage="两次输入密码不一致" value="@Model.ConfirmPassword" />
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
